package com.zhiyou100.pra2;

/**
 * 宠物类的子类  狗类
 */
public class Dog extends Pet {
    @Override
    public void eat() {
        System.out.println("狗喜欢吃骨头.....");
    }

    @Override
    public void play() {
        System.out.println("狗子喜欢游泳......");
    }
}
